CC=gcc
CFLAGS=-g -c -Wall -O2

all:server user

server:server.o
	$(CC) $< -o $@ -lpthread -lsqlite3

user:user.o
	$(CC) $< -o $@


%*.o:%*.c
	$(CC) $(CFLAGS) $< -o $@

.PHONY:clean

clean:
	$(RM) a.out server user *.o


